Offers utility functions to help with the enumeration support. More...
Static Public Member Functions | |
static nkMemory::StringView | enumToString (EFFECT_TYPE value) |
static EFFECT_TYPE | stringToEnum (const nkMemory::StringView &value) |
Offers utility functions to help with the enumeration support.
|
static |
Translates an enum value to a string. Values supported are :
Enum value | String value |
---|---|
EFFECT_TYPE::UNKNOWN | 'UNKNOWN' |
EFFECT_TYPE::FXAA | 'FXAA' |
value | The enumeration value to convert. |
|
static |
Translates a string to its enum value.
String value | Enum value |
---|---|
'FXAA' | EFFECT_TYPE::FXAA |
'UNKNOWN' / Anything else | EFFECT_TYPE::UNKNOWN' |
value | The string to convert. |